package com.jsg.sl651.entity.frame.body.request;

import com.jsg.sl651.entity.frame.body.MessageBody;

/**
 * 主动请求的请求体
 */
public abstract class RequestMessageBody extends MessageBody {
    /**
     * @param bytes
     * @return
     * @throws Exception
     */
    @Override
    public MessageBody decodeHex(byte[] bytes) throws Exception {
        throw new Exception("主动请求的请求体不支持HEX编码");
    }

    /**
     * @param bytes
     * @return
     * @throws Exception
     */
    @Override
    public MessageBody decodeAscii(byte[] bytes) throws Exception {
        throw new Exception("主动请求的请求体不支持ASCII编码");
    }


}
